home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 14 / CU Amiga Magazine's Super CD-ROM 14 (1997)(EMAP Images)(GB)(Track 1 of 3)[!][issue 1997-09].iso / CUCD / Programming / SecalDemo / Inc / exec / tasks.inc < prev    next >
Encoding:
Text File  |  1997-06-11  |  1.3 KB  |  73 lines

  1. include "inc/exec/nodes.inc";
  2. include "inc/exec/lists.inc";
  3.  
  4. struct Task is
  5.   tc_Node:Node;
  6.   tc_Flags:ubyte;
  7.   tc_State:ubyte;
  8.   tc_IDNestCnt:byte;
  9.   tc_TDNestCnt:byte;
  10.   tc_SigAlloc:ulong;
  11.   tc_SigWait:ulong;
  12.   tc_SigRecvd:ulong;
  13.   tc_SigExcept:ulong;
  14.   tc_TrapAlloc:uword;
  15.   tc_TrapAble:uword;
  16.   tc_ExceptData:ulong;
  17.   tc_ExceptCode:ulong;
  18.   tc_TrapData:ulong;
  19.   tc_TrapCode:ulong;
  20.   tc_SPReg:ulong;
  21.   tc_SPLower:ulong;
  22.   tc_SPUpper:ulong;
  23.   tc_Switch:ulong;
  24.   tc_Launch:ulong;
  25.   tc_MemEntry:List;
  26.   tc_UserData:ulong;
  27. ;
  28.  
  29. struct StackSwapStruct is
  30.   stk_Lower:ulong;
  31.   stk_Upper:ulong;
  32.   stk_Pointer:ulong;
  33. ;
  34.  
  35. def TB_PROCTIME = 0;
  36. def TB_ETASK = 3;
  37. def TB_STACKCHK = 4;
  38. def TB_EXCEPT = 5;
  39. def TB_SWITCH = 6;
  40. def TB_LAUNCH = 7;
  41.  
  42. def TF_PROCTIME = (1<<0);
  43. def TF_ETASK = (1<<3);
  44. def TF_STACKCHK = (1<<4);
  45. def TF_EXCEPT = (1<<5);
  46. def TF_SWITCH = (1<<6);
  47. def TF_LAUNCH = (1<<7);
  48.  
  49. def TS_INVALID = 0;
  50. def TS_ADDED = 1;
  51. def TS_RUN = 2;
  52. def TS_READY = 3;
  53. def TS_WAIT = 4;
  54. def TS_EXCEPT = 5;
  55. def TS_REMOVED = 6;
  56.  
  57. def SIGB_ABORT = 0;
  58. def SIGB_CHILD = 1;
  59. def SIGB_BLIT = 4;
  60. def SIGB_SINGLE = 4;
  61. def SIGB_INTUITION = 5;
  62. def SIGB_NET = 7;
  63. def SIGB_DOS = 8;
  64.  
  65. def SIGF_ABORT = (1<<0);
  66. def SIGF_CHILD = (1<<1);
  67. def SIGF_BLIT = (1<<4);
  68. def SIGF_SINGLE = (1<<4);
  69. def SIGF_INTUITION = (1<<5);
  70. def SIGF_NET = (1<<7);
  71. def SIGF_DOS = (1<<8);
  72.  
  73.